/*
 * Copyright：fxsen <br/>
 * Date: 2022/1/19 17:24 <br/>
 * Email:fxsen@foxmail.com
 * Author: fxsen
 */
package com.fxsen.commons.sysmanager.core.service;

import com.fxsen.commons.core.base.common.service.ICommonService;
import com.fxsen.commons.sysmanager.core.entity.MenuRole;

import java.util.List;

/**
 * @describe: 角色菜单接口服务
 * @date: 2022/1/19 17:24
 * @author: fxsen
 */
public interface IMenuRoleService extends ICommonService<MenuRole> {
    /**
    * 通过角色查询菜单
    * @param roleId 角色id
    * @return {@link List}
    * @date 2022/1/20 10:27
    * @author fxsen
    **/
    List<MenuRole> findByRoleId(String roleId);
    /**
    * 通过角色和菜单查询
    * @param roleId 角色id
    * @param menuId 菜单id
    * @return {@link MenuRole}
    * @date 2022/1/23 21:36
    * @author fxsen
    **/
    MenuRole findByRoleIdAndMenuId(String roleId,String menuId);
}
